package Student;

import java.util.Scanner;
import java.util.TreeMap;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-04-16
 * Time: 20:47
 */
public class Main {
    public static int menu(){
        System.out.println("1.数据录入");
        System.out.println("2.信息查询");
        System.out.println("3.删除学生");
        System.out.println("4.编辑信息");
        System.out.println("5.退出系统");
        System.out.println("请选择>:");
        Scanner scanner=new Scanner(System.in);
        int index=scanner.nextInt();
        return index;
    }
    public static void main(String[] args) {
        Student student=new Student();
        TreeMap<Student,String> treeMap=new TreeMap<>();
       while (true){
           int choice=menu();
            student.doOperation(choice,treeMap);
       }
    }
}
